//
//  RangeViewController.swift
//  testRxSwift
//
//  Created by 火星人 on 2017/7/24.
//  Copyright © 2017年 火星人. All rights reserved.
//

import UIKit
import RxSwift

class RangeViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.view.addTapWithHandle { (tap) in
            
            let disBag = DisposeBag()
            
            Observable.range(start: 1, count: 10)
                .subscribe({ (eve) in
                    print("\(eve)")
                })
                .disposed(by: disBag)
        }
    }

}
